package com.jd.finance.core.service;

import com.jd.finance.core.pojo.entity.Rate;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jd.finance.result.BaseResult;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;

/**
 * <p>
 * 利率表，产品，银行中间表 服务类
 * </p>
 *
 * @author LiQingBo
 * @since 2022-05-20
 */
public interface RateService extends IService<Rate> {


    /**
     * 添加贷款产品
     * @param uid
     * @param rate
     * @param money
     * @param proName
     * @param proInfo
     * @param proKey
     * @param repayWay
     * @param request
     * @return
     */
    BaseResult addLoanProduct(@Param("uid") Integer uid, @Param("rate") BigDecimal rate,
                              @Param("money") BigDecimal money, @Param("proName") String proName,
                              @Param("proInfo") String proInfo, @Param("prokey") String proKey,
                              String repayWay, @Param("request") HttpServletRequest request);
}
